<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/1/28 0028
  Time: 16:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>上传文件</title>
</head>
<body>
<h3>传统上传文件</h3>
    <%--name和id类似，但是name可以重复；value是控件的值；注意一定是post，且编码方式是multipart/form-data--%>
    <form action="user/fileUpload1" method="post" enctype="multipart/form-data">
        选择文件 <input type="file" name="upload"/><br/>
        <input type="submit" value="上传"/>
    </form>

<h3>SpringMVC传统上传文件</h3>
<form action="user/fileUpload2" method="post" enctype="multipart/form-data">
    选择文件 <input type="file" name="upload"/><br/>
    <input type="submit" value="上传"/>
</form>

<h3>SpringMVC3 上传文件</h3>
<form action="user/fileupload3" method="post" enctype="multipart/form-data">
    选择文件 <input type="file" name="upload"/><br/>
    <input type="submit" value="上传"/>
</form>
</body>
</html>
